Micron Document
Gopher Proxy


codevoid.de:70 codevoid.de:70/0/patches/2019-08-12-sacc_urlshow.diff
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Show URI on selection [sacc]

Sacc shows the URI when pressing enter on a link and the URI indicated a
non-gopher type that needs plumbing.

This patch shows the URI when the link is highlighted already, which allows
copy & paste without plumbing.

--- ui_ti.c.orig 2018-11-15 10:33:17.208268025 +0100
+++ ui_ti.c 2018-11-15 10:43:04.923034897 +0100
@@ -336,7 +336,11 @@
putp(tparm(enter_standout_mode, 0, 0, 0, 0, 0, 0, 0, 0, 0));
printitem(&dir->items[curline]);
putp(tparm(exit_standout_mode, 0, 0, 0, 0, 0, 0, 0, 0, 0));
- displaystatus(item);
+ if (dir->items[dir->curline].type == 'i') {
+ displaystatus(item);
+ } else {
+ displayuri(&dir->items[dir->curline]);
+ }
fflush(stdout);
}

you're on codevoid.de^70/0/patches/2019-08-12-sacc_urlshow.diff
back link is codevoid.de:70/1